import 'package:json_annotation/json_annotation.dart';

part 'pipe_scene_in_params.g.dart';

@JsonSerializable()
class PipeSceneInParams extends Object {
  @JsonKey(name: 'val')
  String? val;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'alias')
  String? alias;

  @JsonKey(name: 'type')
  String type;

  @JsonKey(name: 'title')
  String? title;

  @JsonKey(name: 'required')
  int? required;

  @JsonKey(name: 'desc')
  String? desc;

  @JsonKey(name: 'placeholder')
  String? placeholder;

  PipeSceneInParams(this.val, this.name, this.alias, this.type, this.title, this.required, this.desc, this.placeholder);

  factory PipeSceneInParams.fromJson(Map<String, dynamic> srcJson) => _$PipeSceneInParamsFromJson(srcJson);

  Map<String, dynamic> toJson() => _$PipeSceneInParamsToJson(this);
}
